package center.leon.zoofeign.service.impl;

import center.leon.zoocommon.common.Response;
import center.leon.zoofeignapi.dto.Monkey;
import center.leon.zoofeignapi.service.ZooMonkeyServiceApi;
import org.springframework.stereotype.Service;

/**
 * @author : Leon on XXM Mac
 * @since : create in 2024/8/19 15:15
 */
@Service
public class ZooMonkeyServiceApiImpl implements ZooMonkeyServiceApi {

    @Override
    public Response<Monkey> getMonkeyById(Long id) {
        Monkey monkey = new Monkey().setId(id).setName("Monkey");
        return Response.success(monkey);
    }
}
